package com.gagakuai.base;

public class CommonResultDTO<T> {
    T data;
    Long code;
    String  message;

    public CommonResultDTO() {
        this(null,null);
    }

    public CommonResultDTO(T data, long code, String message) {
        this.data = data;
        this.code = code;
        this.message = message;
    }

    public CommonResultDTO(T data, String message) {
        this(data,0L,message);
    }

    public CommonResultDTO(T data) {
         this(data,null);
    }

    public T getData() {
        return this.data;
    }

    public Long getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setData(T data) {
        this.data = data;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
